/*
 * @(#) ActionType.java 2011-6-20
 *
 * Copyright (c) 2011, Strong Technology. All Rights Reserved.
 * Strong Technology. CONFIDENTIAL
 */
package cn.strong.gweva.common.util;

/**
 * 单据操作类型
 * 
 * @author lilanfei
 * @version 1.0
 * @since 2011-6-20
 */
public class ActionType
{
	///////////////////////////////ACTION////////////////////////////////
	//////////////////////////////通用ACTION/////////////////////////////
	/**各种单据新建*/
	public static final ActionType ACTION_TYPE_COMMIT_NEW = new ActionType("COMMIT_NEW", "单据新建");
	
	//操作
	private String action;
	//操作名称
	private String actionName; 

	/**
	 * @return actionName
	 */
	public String getActionName()
	{
		return actionName;
	}
	/**
	 * @return action
	 */
	public String getAction()
	{
		return action;
	}
	/**
	 * 操作构造
	 * @param actionName
	 */
	private ActionType(String action, String actionName)
	{
		this.action = action;
		this.actionName = actionName;
	}
	/**
	 * @param obj ActionType
	 * @return equals
	 */
	public boolean equals(ActionType obj)
	{
		return this.action.equals(obj.action);
	}
	
	/**
	 * toString
	 * @return action + " " + actionName
	 */
	public String toString()
	{
		return action + " " + actionName;
	}
}
